package com.ruide.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import com.ruide.vo.BTReport;;

public class BTReportMapper implements IMapper{
	public List<BTReport> map(ResultSet rst) {
		List<BTReport> list=new ArrayList<>();
		try {
			while(rst.next()){
				BTReport b=new BTReport();
				b.setCount(rst.getInt("COUNT"));
				b.setUserid(rst.getInt("USERID"));
				b.setUseridto(rst.getInt("USERIDTO"));
				b.setMoney(rst.getInt("MONEY"));
				b.setTime(rst.getDate("TIME"));
				list.add(b);
			}
			return list;
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return null;
	}

}
